def percent(score):
    if not 0 <= score <= 100:
        raise ValueError(f"分数必须在 0~100 之间，当前：{score}")
    return f"{score}%"


try:

    percent(120)  # ValueError: 分数必须在 0~100 之间，当前：120
except ValueError as e:
    print(e)
